//
//  WKNavigationController.m
//  iBook
//
//  Created by wangjing on 14/12/6.
//  Copyright (c) 2014年 wikiflyer. All rights reserved.
//

#import "WKNavigationController.h"
#import "BaseViewController.h"

@interface WKNavigationController ()

@end

@implementation WKNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
//跳转到下一个界面
-(void)pushViewController:(BaseViewController *)viewController animated:(BOOL)animated{
    //如果现在push的不是栈顶控制器，就隐藏tab栏
    if (self.viewControllers.count > 0) {
//        viewController.hidesBottomBarWhenPushed = YES;
        
        //拦截push操作
    }
//    if (viewController.hide) {
//        viewController.hidesBottomBarWhenPushed = YES;
//    }
    [super pushViewController:viewController animated:animated];
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
